#ifndef QSCRIPTOBJECTLISTWIDGET_H
#define QSCRIPTOBJECTLISTWIDGET_H

#include "qpagewidget.h"

#include <QWidget>
#include <QListWidget>
#include <QTreeWidget>

class QScriptObjectListWidgetBar;

class QScriptObjectListWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QScriptObjectListWidget(QWidget *parent = 0);

protected:
    void    initObjectList();
signals:
    void    selectFunction(const QString &code,int count,const QString type);
public slots:
    void    objectSelectChanged();
    void    functionSelect(QListWidgetItem* item);

    void    findNext(const QString &text);
    void    findPrev(const QString &text);
protected:
    QScriptObjectListWidgetBar  *m_bar;
    QTreeWidget                 *m_objectList;
    QListWidget                 *m_functionList;
    QMap<QString,tagFormInfo>   m_forms;
};

#endif // QSCRIPTOBJECTLISTWIDGET_H
